package 类和对象课堂练习;

import 类和对象课堂练习.封装.Zuoye03281;

public class Zuoye0408 {
    private String color,jiage,pingmu;

    public Zuoye0408(String color, String jiage, String pingmu) {
        this.color = color;
        this.jiage = jiage;
        this.pingmu = pingmu;
    }
    public void jieshao(){
        System.out.println("电视机是"+color+"，价格为"+jiage+"元，屏幕为"+pingmu+"英寸");
    }
    public void open(Zuoye04081 a){
        jieshao();
        a.kaiji();
    }
    public void close(Zuoye04081 a){
        jieshao();
        a.guanbi();
    }
    public void switchs(Zuoye04081 a){
        jieshao();
        a.switchs();
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getJiage() {
        return jiage;
    }

    public void setJiage(String jiage) {
        this.jiage = jiage;
    }

    public String getPingmu() {
        return pingmu;
    }

    public void setPingmu(String pingmu) {
        this.pingmu = pingmu;
    }

//    public void open(String s, String s1, String 白色) {
//    }
}
